package com.miso.shop.dao.impl;

import java.util.List;
import javax.annotation.Resource;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import com.miso.shop.dao.CnsDAO0090;
import com.miso.shop.model.CnsVO0110;




@Repository("cnsDAO0090") 
public class CnsDAOImpl0090 implements CnsDAO0090 {

@Resource(name="sqlSession") protected SqlSessionTemplate template;
	 
	@Override
	public void setSqlSessionTemplate(SqlSessionTemplate template) {
		this.template = template;
	}
	
	@Override
	public Object insert(String queryId, Object parameterObject)
	{
		return template.insert(queryId, parameterObject);
	}

	@Override
	public int update(String queryId, Object parameterObject)
	{
		return template.update(queryId, parameterObject);
	}

	@Override
	public int delete(String queryId, Object parameterObject)
	{
		return template.delete(queryId, parameterObject);
	}

	@Override
	public Object selectOne(String queryId, Object parameterObject)
	{
		return template.selectOne(queryId, parameterObject);
	}

	@Override
	public List<CnsVO0110> list(String queryId, Object parameterObject)
	{
		return template.selectList(queryId, parameterObject);
	}
}
